//
//  HWbangbinTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/11/15.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWbangbinTableViewCell.h"

@interface HWbangbinTableViewCell()

@property(strong,nonatomic) UILabel *youxiNick;
@property(strong,nonatomic) UILabel *youELabel;
@end

@implementation HWbangbinTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return  self;
}


- (void)setupUI {
    
    
    UILabel *youxiMingcheng = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, kScreenW/2, 44)];
        youxiMingcheng.text = @"1";
    youxiMingcheng.font = [UIFont systemFontOfSize:10];
    youxiMingcheng.textColor = RGB(51,51,51);
    youxiMingcheng.numberOfLines = 2;
    youxiMingcheng.textAlignment = NSTextAlignmentCenter;
    youxiMingcheng.userInteractionEnabled =YES;
    self.youxiNick =youxiMingcheng;
    [self.contentView addSubview:youxiMingcheng];
        
      UILabel *yuEtLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenW/2, 0, kScreenW/2, 44)];
           yuEtLabel.text = @"1";
       yuEtLabel.font = [UIFont systemFontOfSize:10];
       yuEtLabel.textColor = RGB(51,51,51);
       yuEtLabel.numberOfLines = 2;
       yuEtLabel.textAlignment = NSTextAlignmentCenter;
       yuEtLabel.userInteractionEnabled =YES;
    self.youELabel =yuEtLabel;
    [self.contentView addSubview:yuEtLabel];
    
    
    
    UIView *shuxianView = [[UIView alloc]initWithFrame:CGRectMake(kScreenW/2, 0, 1, 44)];
     shuxianView.backgroundColor =  RGB(232, 232, 242);
     [self.contentView addSubview:shuxianView];
    
    
    UIView *xiahuanxiView = [[UIView alloc]initWithFrame:CGRectMake(0, 43, kScreenW, 1)];
    xiahuanxiView.backgroundColor =  RGB(232, 232, 242);
    [self.contentView addSubview:xiahuanxiView];
    
}

-(void)setModel:(HWbangbiModel *)model {
    
    _model = model;
    
    self.youxiNick.text = [NSString stringWithFormat:@"%@",model.gname];
    
     self.youELabel.text = [NSString stringWithFormat:@"%@",model.bind_coin];
    
}

@end
